package com.rockcent.mall.lib.repository;

import com.rockcent.mall.lib.domain.MessageAutoreply;
import com.rockcent.mall.lib.domain.enumclass.WechatMessageCode;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * Created by marco on 2017/5/24.
 */
@Repository
public interface MallWechatMessageConfigRepository extends JpaRepository<MessageAutoreply,Long> {

    MessageAutoreply findByCodeAndMallId(WechatMessageCode code,Long mallId);

}
